package six;

import java.util.Random;

public class TestRandom {
    public static void main(String[] args) {
        TestRandom T = new TestRandom(1000);
        for(int i=1;i<=50;i++)
        {
            T.nextInt(100);
        }

    }
    int seed=0;
    Random r;
    TestRandom(int new_seed)
    {
        seed=new_seed;
        r = new Random(seed);
    }
    void nextInt(int n)
    {

        System.out.println(r.nextInt(n));

    }
}
